package com.sinbader.xiaole.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 仓库
 * </p>
 *
 * @author LuoYong
 * @since 2020-04-16
 */
@TableName("warehouse")
public class Warehouse implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 仓库编号
     */
    @TableField("warehouse_num")
    private String warehouseNum;

    /**
     * 仓库名称
     */
    @TableField("warehouse_name")
    private String warehouseName;

    /**
     * 分店id
     */
    @TableField("shop_id")
    private Long shopId;

    /**
     * 仓库类型： 0: 正品仓 1:废品仓 2：急件仓
     */
    @TableField("warehouse_type")
    private Integer warehouseType;

    /**
     * 部门
     */
    @TableField("department")
    private String department;

    /**
     * 是否开放采购 0 是 1 否
     */
    @TableField("procurement_status")
    private Integer procurementStatus;

    /**
     * 是否开启销售 0：开启 1 停用
     */
    @TableField("sales_status")
    private Integer salesStatus;

    /**
     * 是否共享配件档案：
            0: 是 1:否
     */
    @TableField("shared_type")
    private Integer sharedType;

    /**
     * 数据状态：0: 启用 1:禁用
     */
    @TableField("status")
    private Integer status;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 经手人id
     */
    @TableField("handle_user")
    private Long handleUser;

    /**
     * 创建时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人id
     */
      @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 审核人id
     */
    @TableField("audit_user")
    private Long auditUser;

    /**
     * 审核时间
     */
    @TableField("audit_time")
    private Date auditTime;

    /**
     * 更新时间
     */
      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 打印时间
     */
    @TableField("print_time")
    private Date printTime;

    /**
     * 更新人id
     */
      @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 默认为0,1为删除
     */
    @TableField("is_delete")
    private Integer isDelete;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWarehouseNum() {
        return warehouseNum;
    }

    public void setWarehouseNum(String warehouseNum) {
        this.warehouseNum = warehouseNum;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Integer getWarehouseType() {
        return warehouseType;
    }

    public void setWarehouseType(Integer warehouseType) {
        this.warehouseType = warehouseType;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public Integer getProcurementStatus() {
        return procurementStatus;
    }

    public void setProcurementStatus(Integer procurementStatus) {
        this.procurementStatus = procurementStatus;
    }

    public Integer getSalesStatus() {
        return salesStatus;
    }

    public void setSalesStatus(Integer salesStatus) {
        this.salesStatus = salesStatus;
    }

    public Integer getSharedType() {
        return sharedType;
    }

    public void setSharedType(Integer sharedType) {
        this.sharedType = sharedType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getHandleUser() {
        return handleUser;
    }

    public void setHandleUser(Long handleUser) {
        this.handleUser = handleUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Long getAuditUser() {
        return auditUser;
    }

    public void setAuditUser(Long auditUser) {
        this.auditUser = auditUser;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getPrintTime() {
        return printTime;
    }

    public void setPrintTime(Date printTime) {
        this.printTime = printTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "Warehouse{" +
        "id=" + id +
        ", warehouseNum=" + warehouseNum +
        ", warehouseName=" + warehouseName +
        ", shopId=" + shopId +
        ", warehouseType=" + warehouseType +
        ", department=" + department +
        ", procurementStatus=" + procurementStatus +
        ", salesStatus=" + salesStatus +
        ", sharedType=" + sharedType +
        ", status=" + status +
        ", remark=" + remark +
        ", handleUser=" + handleUser +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", auditUser=" + auditUser +
        ", auditTime=" + auditTime +
        ", updateTime=" + updateTime +
        ", printTime=" + printTime +
        ", updateUser=" + updateUser +
        ", isDelete=" + isDelete +
        "}";
    }
}
